#! /usr/bin/env python
# -*- coding: utf-8 -*-

import io,char,os

#写文本文件
def Write(buf,path,name):
	try:
		fp=open(path+'/'+name+'.html','w')
		fp.write(buf)
		fp.close()
		return path+'/'+name+'.html'
	except:
		return None

#获得文件大小
def GetSize(str):
	try:
		return os.path.getsize(str)
	except:
		return None